const {DataTypes, db, } = require("../db");
db.define('workLocation', {
    id: {type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true},
    tenantId: {type: DataTypes.INTEGER,},
    longitude: {type: DataTypes.DOUBLE,}, //应打卡点经度
    latitude: {type: DataTypes.DOUBLE,}, // 应打卡点纬度
    address: {type: DataTypes.STRING,}, // 打卡点地址
    timeWorkOn: {type: DataTypes.STRING,}, //上班时间
    timeWorkOff: {type: DataTypes.STRING,}, //下班时间
    meter: {type: DataTypes.INTEGER,}, // 间隔距离
    cby: {type: DataTypes.INTEGER,},
    ctime: {type: DataTypes.STRING,}, //当天日期
}, {
    tableName: 'work_location',
    timestamps: false
});